package com.yeyks.dal.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息通知
 *
 * @author 
 */
@Data
public class MessageNotice implements Serializable {
    private Long id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 酒店id
     */
    private Integer hotelId;

    /**
     * 活动id
     */
    private Integer activityId;

    /**
     * 1:订单消息通知 2、活动消息通知
     */
    private Integer type;

    /**
     * 标题
     */
    private String title;

    /**
     * 消息通知内容
     */
    private String content;

    /**
     * icon地址
     */
    private String iconUrl;

    /**
     * 创建日期
     */
    private Date createdTime;

    private static final long serialVersionUID = 1L;

    public static enum Type {
        order(1, "订单消息通知"),
        activity_coupon(21, "活动通知下优惠券"),
        activity_commission(22, "活动通知下佣金"),
        activity_activity(23, "活动通知下活动"),
        activity_wallet(24, "活动通知下钱包");
        int value;
        String desc;

        Type(int value, String desc) {
            this.value = value;
            this. desc = desc;
        }

        public Integer value() {
            return this.value;
        }
    }

}